package myplayer;

import javafx.application.Application;
import javafx.fxml.FXMLLoader;
import javafx.scene.Scene;
import javafx.scene.SceneBuilder;
import javafx.scene.layout.StackPane;
import javafx.scene.paint.Color;
import javafx.stage.Stage;

public class MyPlayer extends Application {

	@Override
	public void start(Stage stage) throws Exception {
//		final PlayerUi playerUi = new PlayerUi();
//		final Scene sceneRef = playerUi.scene;

		final StackPane page = (StackPane) FXMLLoader.load(getClass().getResource("/fxml/MyPlayer.fxml"));
		
		final Scene sceneRef = SceneBuilder.create()
				.width(600)
				.height(400)
				.fill(Color.TRANSPARENT)
				.root(page)
				.build();
		
		stage.setScene(sceneRef);
//		stage.initStyle(StageStyle.TRANSPARENT);
		stage.show();
	}

	/**
	 * @param args
	 */
	public static void main(String[] args) {
		launch(args);
	}

}
